s = input("输入字符:")
zimu = 0
space = 0
num = 0
others = 0
for i in s:
   if i.isalpha():
      zimu += 1
   elif i.isspace():
      space += 1
   elif i.isdigit():
      num += 1
   else:
      others += 1
print('英文字母有{0}个,空格有{1}个，数字有{2}个,其它字符有{3}个'.format(zimu,space,num,others))